package com.zhan.ielts.enums;

public enum ProductEnum {
	ieltstiku("ieltstiku", "小站雅思"), ieltsword("ieltsword", "雅思单词"), tpo("tpo", "小站托福TPO"), tpoword("tpoword", "托福单词"),tpo_iPad("tpo_iPad","小站托福TPO_iPad");
	private String name;
	private String desc;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	private ProductEnum(String name, String desc) {
		this.name = name;
		this.desc = desc;
	}
	public static String getdescByName(String name) {
		for (ProductEnum e : ProductEnum.values()) {
			if (e.getName().equals(name)) {
				return e.getDesc();
			}
		}
		return null;
	}
}
